package dataLayer.settings;

import dataLayer.settings.PersistenceSettings;

public class SettingsManager {
	private String Persistenzstring;
	private static SettingsManager instance;
	private PersistenceSettings persistenceSettings;
	
	/**
	 * Konstruktor
	 */
	private SettingsManager(){
		persistenceSettings = new PersistenceSettings();
	}
	/**
	 * Create or Returns instance of Settingsmanager
	 * @return settingsmanager
	 */
	static public SettingsManager getInstance()
	{
		if(instance == null){
			instance = new SettingsManager();
		}
		return instance;
	}
	/**
	 * Selects Database connectiontype of Persistence class
	 * @return String Databasetype
	 */
	public String getPersistenceType(){
		return persistenceSettings.getPersistenceType();
	}
	/**
	 * Sets Database connectiontype in Persistence class
	 */
	public void setPersistenceType(String type){
		persistenceSettings.setPersistenceType(type);
	}
}
